﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserAccountDetail.aspx.cs" Inherits="AspNetTraining.UserAccountDetail" %>

<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

    <table style="width: 100%;">
        <tr>
            <td>User Name:</td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server" Enabled="false"
                    Text='<%#Eval("UserName")%>'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>First Name:</td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server"
                    Text='<%#Eval("FirstName")%>' MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Last Name:</td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server"
                    Text='<%#Eval("LastName")%>' MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Birthday:</td>
            <td>
                <asp:DropDownList ID="DdlMonths" runat="server" Height="29px">
                    <asp:ListItem Enabled="true" Text="Select Month" Value="-1"></asp:ListItem>
                    <asp:ListItem Text="January" Value="1"></asp:ListItem>
                    <asp:ListItem Text="February" Value="2"></asp:ListItem>
                    <asp:ListItem Text="March" Value="3"></asp:ListItem>
                    <asp:ListItem Text="April" Value="4"></asp:ListItem>
                    <asp:ListItem Text="May" Value="5"></asp:ListItem>
                    <asp:ListItem Text="June" Value="6"></asp:ListItem>
                    <asp:ListItem Text="July" Value="7"></asp:ListItem>
                    <asp:ListItem Text="August" Value="8"></asp:ListItem>
                    <asp:ListItem Text="September" Value="9"></asp:ListItem>
                    <asp:ListItem Text="Octorber" Value="10"></asp:ListItem>
                    <asp:ListItem Text="November" Value="11"></asp:ListItem>
                    <asp:ListItem Text="Decfmber" Value="12"></asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox runat="server" ID="txtDay" Height="18px" Width="80px" BorderStyle="Solid" MaxLength="2" />
                <asp:TextBox runat="server" ID="txtYear" Height="18px" Width="80px" BorderStyle="Solid" MaxLength="4" />
                <asp:Label ID="lblError" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>Email:</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"
                    Text='<%#Eval("Email")%>'></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>Password</td>
            <td>
                <asp:TextBox TextMode="Password"  ID="txtPassword" runat="server"
                    Text='<%#Eval("Password")%>' MaxLength="250"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Confirm Password</td>
            <td>
                <asp:TextBox TextMode="Password" ID="txtConfirmPassword" runat="server"
                    Text='<%#Eval("Password")%>' MaxLength="250"></asp:TextBox></td>
        </tr>
        <tr>
            <td>CreatedOn:</td>
            <td>
                <asp:TextBox ID="txtCreatedOn" runat="server" Enabled="false"
                    Text='<%#String.Format("{0:MM/dd/yy}", Eval("CreatedOn"))%>'></asp:TextBox></td>
        </tr>
        <%--<tr>
            <td>CreatedBy:</td>
            <td>
                <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="false"
                    Text='<%#Eval("CreatedBy")%>'></asp:TextBox></td>
        </tr>--%>
        <tr>
            <td>ModifiedOn:</td>
            <td>
                <asp:TextBox ID="txtModifiedOn" runat="server" Enabled="false"
                    Text='<%#String.Format("{0:MM/dd/yy}", Eval("ModifiedOn"))%>'></asp:TextBox></td>
        </tr>
        <%-- <tr>
            <td>ModifiedBy:</td>
            <td>
                <asp:TextBox ID="txtModifiedBy" runat="server" Enabled="false"
                    Text='<%#Eval("ModifiedBy")%>'></asp:TextBox></td>
        </tr>--%>
        <tr>
            <td>Group User:</td>
            <td>
                <asp:DropDownList runat="server" ID="ddlGroupUser" Width="300px">
                </asp:DropDownList>
        </tr>
        <tr>
            <td>Description:</td>
            <td>
                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Rows="5"
                    Text='<%#Eval("Description")%>' Width="294px"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Active:</td>
            <td>
                <asp:CheckBox ID="chkActive" runat="server"
                    Checked='<%#Eval("Active")%>'></asp:CheckBox></td>
        </tr>
        <tr>
            <td></td>
            <td>
                
                <asp:Button runat="server" Text="Update" ID="btnUpdate" OnClick="btnUpdate_Click" />
                <asp:Button runat="server" Text="Exit" ID="btnExit" OnClick="btnExit_Click" />
            </td>
        </tr>
    </table>
    <div>
        <%--Lưu password tạm thời--%>
        <asp:HiddenField ID="hdfPassword" runat="server" />
    </div>

</asp:Content>
